package com.sun.vo;

import java.util.ArrayList;
import java.util.List;

public class CUserSettingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitEnd = -1;

    public CUserSettingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    public int getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("UID is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("UID is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(String value) {
            addCriterion("UID =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(String value) {
            addCriterion("UID <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(String value) {
            addCriterion("UID >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(String value) {
            addCriterion("UID >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(String value) {
            addCriterion("UID <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(String value) {
            addCriterion("UID <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLike(String value) {
            addCriterion("UID like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotLike(String value) {
            addCriterion("UID not like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<String> values) {
            addCriterion("UID in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<String> values) {
            addCriterion("UID not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(String value1, String value2) {
            addCriterion("UID between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(String value1, String value2) {
            addCriterion("UID not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andSetbaseIsNull() {
            addCriterion("SETBASE is null");
            return (Criteria) this;
        }

        public Criteria andSetbaseIsNotNull() {
            addCriterion("SETBASE is not null");
            return (Criteria) this;
        }

        public Criteria andSetbaseEqualTo(String value) {
            addCriterion("SETBASE =", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseNotEqualTo(String value) {
            addCriterion("SETBASE <>", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseGreaterThan(String value) {
            addCriterion("SETBASE >", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseGreaterThanOrEqualTo(String value) {
            addCriterion("SETBASE >=", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseLessThan(String value) {
            addCriterion("SETBASE <", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseLessThanOrEqualTo(String value) {
            addCriterion("SETBASE <=", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseLike(String value) {
            addCriterion("SETBASE like", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseNotLike(String value) {
            addCriterion("SETBASE not like", value, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseIn(List<String> values) {
            addCriterion("SETBASE in", values, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseNotIn(List<String> values) {
            addCriterion("SETBASE not in", values, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseBetween(String value1, String value2) {
            addCriterion("SETBASE between", value1, value2, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetbaseNotBetween(String value1, String value2) {
            addCriterion("SETBASE not between", value1, value2, "setbase");
            return (Criteria) this;
        }

        public Criteria andSetstatusIsNull() {
            addCriterion("SETSTATUS is null");
            return (Criteria) this;
        }

        public Criteria andSetstatusIsNotNull() {
            addCriterion("SETSTATUS is not null");
            return (Criteria) this;
        }

        public Criteria andSetstatusEqualTo(String value) {
            addCriterion("SETSTATUS =", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusNotEqualTo(String value) {
            addCriterion("SETSTATUS <>", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusGreaterThan(String value) {
            addCriterion("SETSTATUS >", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusGreaterThanOrEqualTo(String value) {
            addCriterion("SETSTATUS >=", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusLessThan(String value) {
            addCriterion("SETSTATUS <", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusLessThanOrEqualTo(String value) {
            addCriterion("SETSTATUS <=", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusLike(String value) {
            addCriterion("SETSTATUS like", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusNotLike(String value) {
            addCriterion("SETSTATUS not like", value, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusIn(List<String> values) {
            addCriterion("SETSTATUS in", values, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusNotIn(List<String> values) {
            addCriterion("SETSTATUS not in", values, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusBetween(String value1, String value2) {
            addCriterion("SETSTATUS between", value1, value2, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetstatusNotBetween(String value1, String value2) {
            addCriterion("SETSTATUS not between", value1, value2, "setstatus");
            return (Criteria) this;
        }

        public Criteria andSetschoolIsNull() {
            addCriterion("SETSCHOOL is null");
            return (Criteria) this;
        }

        public Criteria andSetschoolIsNotNull() {
            addCriterion("SETSCHOOL is not null");
            return (Criteria) this;
        }

        public Criteria andSetschoolEqualTo(String value) {
            addCriterion("SETSCHOOL =", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolNotEqualTo(String value) {
            addCriterion("SETSCHOOL <>", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolGreaterThan(String value) {
            addCriterion("SETSCHOOL >", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolGreaterThanOrEqualTo(String value) {
            addCriterion("SETSCHOOL >=", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolLessThan(String value) {
            addCriterion("SETSCHOOL <", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolLessThanOrEqualTo(String value) {
            addCriterion("SETSCHOOL <=", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolLike(String value) {
            addCriterion("SETSCHOOL like", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolNotLike(String value) {
            addCriterion("SETSCHOOL not like", value, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolIn(List<String> values) {
            addCriterion("SETSCHOOL in", values, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolNotIn(List<String> values) {
            addCriterion("SETSCHOOL not in", values, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolBetween(String value1, String value2) {
            addCriterion("SETSCHOOL between", value1, value2, "setschool");
            return (Criteria) this;
        }

        public Criteria andSetschoolNotBetween(String value1, String value2) {
            addCriterion("SETSCHOOL not between", value1, value2, "setschool");
            return (Criteria) this;
        }

        public Criteria andSettipIsNull() {
            addCriterion("SETTIP is null");
            return (Criteria) this;
        }

        public Criteria andSettipIsNotNull() {
            addCriterion("SETTIP is not null");
            return (Criteria) this;
        }

        public Criteria andSettipEqualTo(String value) {
            addCriterion("SETTIP =", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipNotEqualTo(String value) {
            addCriterion("SETTIP <>", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipGreaterThan(String value) {
            addCriterion("SETTIP >", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipGreaterThanOrEqualTo(String value) {
            addCriterion("SETTIP >=", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipLessThan(String value) {
            addCriterion("SETTIP <", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipLessThanOrEqualTo(String value) {
            addCriterion("SETTIP <=", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipLike(String value) {
            addCriterion("SETTIP like", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipNotLike(String value) {
            addCriterion("SETTIP not like", value, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipIn(List<String> values) {
            addCriterion("SETTIP in", values, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipNotIn(List<String> values) {
            addCriterion("SETTIP not in", values, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipBetween(String value1, String value2) {
            addCriterion("SETTIP between", value1, value2, "settip");
            return (Criteria) this;
        }

        public Criteria andSettipNotBetween(String value1, String value2) {
            addCriterion("SETTIP not between", value1, value2, "settip");
            return (Criteria) this;
        }

        public Criteria andSetmsgIsNull() {
            addCriterion("SETMSG is null");
            return (Criteria) this;
        }

        public Criteria andSetmsgIsNotNull() {
            addCriterion("SETMSG is not null");
            return (Criteria) this;
        }

        public Criteria andSetmsgEqualTo(String value) {
            addCriterion("SETMSG =", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgNotEqualTo(String value) {
            addCriterion("SETMSG <>", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgGreaterThan(String value) {
            addCriterion("SETMSG >", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgGreaterThanOrEqualTo(String value) {
            addCriterion("SETMSG >=", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgLessThan(String value) {
            addCriterion("SETMSG <", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgLessThanOrEqualTo(String value) {
            addCriterion("SETMSG <=", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgLike(String value) {
            addCriterion("SETMSG like", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgNotLike(String value) {
            addCriterion("SETMSG not like", value, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgIn(List<String> values) {
            addCriterion("SETMSG in", values, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgNotIn(List<String> values) {
            addCriterion("SETMSG not in", values, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgBetween(String value1, String value2) {
            addCriterion("SETMSG between", value1, value2, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetmsgNotBetween(String value1, String value2) {
            addCriterion("SETMSG not between", value1, value2, "setmsg");
            return (Criteria) this;
        }

        public Criteria andSetpublishIsNull() {
            addCriterion("SETPUBLISH is null");
            return (Criteria) this;
        }

        public Criteria andSetpublishIsNotNull() {
            addCriterion("SETPUBLISH is not null");
            return (Criteria) this;
        }

        public Criteria andSetpublishEqualTo(String value) {
            addCriterion("SETPUBLISH =", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishNotEqualTo(String value) {
            addCriterion("SETPUBLISH <>", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishGreaterThan(String value) {
            addCriterion("SETPUBLISH >", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishGreaterThanOrEqualTo(String value) {
            addCriterion("SETPUBLISH >=", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishLessThan(String value) {
            addCriterion("SETPUBLISH <", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishLessThanOrEqualTo(String value) {
            addCriterion("SETPUBLISH <=", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishLike(String value) {
            addCriterion("SETPUBLISH like", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishNotLike(String value) {
            addCriterion("SETPUBLISH not like", value, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishIn(List<String> values) {
            addCriterion("SETPUBLISH in", values, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishNotIn(List<String> values) {
            addCriterion("SETPUBLISH not in", values, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishBetween(String value1, String value2) {
            addCriterion("SETPUBLISH between", value1, value2, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetpublishNotBetween(String value1, String value2) {
            addCriterion("SETPUBLISH not between", value1, value2, "setpublish");
            return (Criteria) this;
        }

        public Criteria andSetroundIsNull() {
            addCriterion("SETROUND is null");
            return (Criteria) this;
        }

        public Criteria andSetroundIsNotNull() {
            addCriterion("SETROUND is not null");
            return (Criteria) this;
        }

        public Criteria andSetroundEqualTo(String value) {
            addCriterion("SETROUND =", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundNotEqualTo(String value) {
            addCriterion("SETROUND <>", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundGreaterThan(String value) {
            addCriterion("SETROUND >", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundGreaterThanOrEqualTo(String value) {
            addCriterion("SETROUND >=", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundLessThan(String value) {
            addCriterion("SETROUND <", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundLessThanOrEqualTo(String value) {
            addCriterion("SETROUND <=", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundLike(String value) {
            addCriterion("SETROUND like", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundNotLike(String value) {
            addCriterion("SETROUND not like", value, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundIn(List<String> values) {
            addCriterion("SETROUND in", values, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundNotIn(List<String> values) {
            addCriterion("SETROUND not in", values, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundBetween(String value1, String value2) {
            addCriterion("SETROUND between", value1, value2, "setround");
            return (Criteria) this;
        }

        public Criteria andSetroundNotBetween(String value1, String value2) {
            addCriterion("SETROUND not between", value1, value2, "setround");
            return (Criteria) this;
        }

        public Criteria andSetactivityIsNull() {
            addCriterion("SETACTIVITY is null");
            return (Criteria) this;
        }

        public Criteria andSetactivityIsNotNull() {
            addCriterion("SETACTIVITY is not null");
            return (Criteria) this;
        }

        public Criteria andSetactivityEqualTo(String value) {
            addCriterion("SETACTIVITY =", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityNotEqualTo(String value) {
            addCriterion("SETACTIVITY <>", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityGreaterThan(String value) {
            addCriterion("SETACTIVITY >", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityGreaterThanOrEqualTo(String value) {
            addCriterion("SETACTIVITY >=", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityLessThan(String value) {
            addCriterion("SETACTIVITY <", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityLessThanOrEqualTo(String value) {
            addCriterion("SETACTIVITY <=", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityLike(String value) {
            addCriterion("SETACTIVITY like", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityNotLike(String value) {
            addCriterion("SETACTIVITY not like", value, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityIn(List<String> values) {
            addCriterion("SETACTIVITY in", values, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityNotIn(List<String> values) {
            addCriterion("SETACTIVITY not in", values, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityBetween(String value1, String value2) {
            addCriterion("SETACTIVITY between", value1, value2, "setactivity");
            return (Criteria) this;
        }

        public Criteria andSetactivityNotBetween(String value1, String value2) {
            addCriterion("SETACTIVITY not between", value1, value2, "setactivity");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}